import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'
import 'iview/dist/styles/iview.css';    // 使用 CSS
import 'prismjs/themes/prism.css';

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Index',
      component: Home
    },
    {
      path: '/home/:algorithmName',
      name: 'Home',
      component: Home
    }
  ]
})
